import java.util.Random;
import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        Random random = new Random();
        int c = random.nextInt(100);
        System.out.println(c);
        while(true){
            int a = sc.nextInt();
            if(a == c){
                System.out.println("猜对了！");
                break;
            }
            else if(a < c) {
                System.out.println("你猜小了！");
            }
            else{
                System.out.println("你猜大了！");
            }
        }
    }
    public static void main2(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的姓名");
        String name = sc.nextLine();
        System.out.println(name);
        System.out.println("请输入你的年龄");
        int  n = sc.nextInt();
        System.out.println(n);

    }
    public static void main1(String[] args) {
        int i = 1;
        while(i <= 100){
            if(i%5==0&&i%6==0){
                System.out.println(i);
            }
            i++;
            continue;
        }

    }
}
